package cn.hfatec.shms.enums;

/**
 * @author: panwb
 *
 * Date: 2016/2/18
 * Time: 11:37
 */
public enum IsEnabled {

    YES((byte)1, "是"), NO((byte)0, "否");

    private String desc;
    private Byte code;

    IsEnabled(Byte code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Byte getCode() {
        return code;
    }

    public void setCode(Byte code) {
        this.code = code;
    }

}
